package com.bjqg.bjqg01.bjqg.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bjqg.bjqg01.bjqg.R;

/**
 * Created by bjqg01 on 2017/12/12.
 */

public class GongGaoActivity extends BaseActivity implements View.OnClickListener {

    private ImageView goback;
    private TextView toptitle;
    private ImageView select;
    private TextView xiangqing;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activty_gonggao);
        initView();
    }

    private void initView() {
        goback = (ImageView) findViewById(R.id.back);
        toptitle = (TextView) findViewById(R.id.tv_top_title);
        select = (ImageView) findViewById(R.id.select);
        xiangqing = (TextView) findViewById(R.id.xiangqing);

        goback.setOnClickListener(this);
        toptitle.setText("公告详情");
        select.setVisibility(View.GONE);
        xiangqing.setText(getIntent().getStringExtra("position"));
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.back:
                finish();
                break;
        }
    }
}
